package shape1;

public class Triangle extends Shape{
	double a;
	double b;
	double c;
	
	public Triangle(double a1,double b1,double c1) {
		super("三角形"); 
		a=a1;
		b=b1;
		c=c1;
		
	}
	double p = (a+b+c)/2;
	public double area() {
		return (p*(p-a)*(p-b)*(p-c));
	}

}
